cd288ee0159180e688375a6c27ad3591ef0ff7b7,crypto-java/src/main/java/de/dominikschadow/javasecurity/asymmetric/RSA.java,RSA,loadPublicKey,#KeyStore#String#,87

Before Change


            throw new RuntimeException("Public key " + keyAlias + " not found in keystore");
        }

        PublicKey key = ks.getCertificate(keyAlias).getPublicKey();

        return key;
    }

After Change


            throw new RuntimeException("Public key " + keyAlias + " not found in keystore");
        }

        return ks.getCertificate(keyAlias).getPublicKey();
    }

    private byte[] encrypt(PublicKey publicKey, String initialText) throws NoSuchPaddingException,